package com.bci.pwtz.service;

import com.bci.pwtz.common.util.PaginationList;
import com.bci.pwtz.exception.CanNotDeleteException;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.Dykg;

public interface DykgService {
	/**
	 * 查询低压开关
	 * @param dykgId
	 * @return
	 * @throws PwtzDatabaseException
	 */
	Dykg load(String DykgId) throws PwtzDatabaseException;
	/**
	 * 添加低压开关
	 * @param dykg
	 * @return
	 * @throws PwtzDatabaseException
	 */
	Dykg add(Dykg dykg) throws PwtzDatabaseException;
	/**
	 * 删除低压开关
	 * @param deviceid
	 * @return
	 * @throws PwtzDatabaseException
	 */
	int delete(String deviceid) throws PwtzDatabaseException,CanNotDeleteException;
	/**
	 * 修改低压开关
	 * @param dykg
	 * @return
	 * @throws PwtzDatabaseException
	 */
	int update(Dykg dykg) throws PwtzDatabaseException;
	/**
	 * 分页查询一段时间内修改的低压开关
	 * @param beginTime
	 * @param endTime
	 * @param pageSize
	 * @param pageNo
	 * @return
	 * @throws PwtzDatabaseException
	 */
	PaginationList<Dykg> selectDykgs(String devicename,Long companyId,int portalType,String[] medLineCodes,int stationDeviceType,String stationCode,String beginTime,String endTime,int pageSize,int pageNo)throws PwtzDatabaseException;

	PaginationList<Dykg> selectDykgByDyzf(String stationCode,String deviceName,Long companyId,int pageSize, int pageNo) throws PwtzDatabaseException;
}
